import request from '@/utils/request'

// 查询活动题目列表
export function listTrainActivityProblem(query) {
  return request({
    url: '/question/trainActivityProblem/list',
    method: 'get',
    params: query
  })
}

// 查询活动题目详细
export function getTrainActivityProblem(id) {
  return request({
    url: '/question/trainActivityProblem/' + id,
    method: 'get'
  })
}

// 新增活动题目
export function addTrainActivityProblem(data) {
  return request({
    url: '/question/trainActivityProblem',
    method: 'post',
    data: data
  })
}

// 修改活动题目
export function updateTrainActivityProblem(data) {
  return request({
    url: '/question/trainActivityProblem',
    method: 'put',
    data: data
  })
}

// 删除活动题目
export function delTrainActivityProblem(id) {
  return request({
    url: '/question/trainActivityProblem/' + id,
    method: 'delete'
  })
}

// 新增活动题目
export function addTrainActivityProblemBatch(data) {
  return request({
    url: '/question/trainActivityProblem/batch/add',
    method: 'post',
    data: data
  })
}
